package com.prp.db.idao;

import java.util.List;

import com.prp.db.po.RecommendationEntity;

public interface IRecommendationEntityDAO {
	public void save(RecommendationEntity transientInstance);

	public void delete(RecommendationEntity persistentInstance);

	public RecommendationEntity findById(java.lang.Integer id);

	public List findByExample(RecommendationEntity instance);

	public List findByProperty(String propertyName, Object value);

	public List findByEntityName(Object entityName);

	public List findByClickFreq(Object clickFreq);

	public List findByWaitingTime(Object waitingTime);

	public List findByReplyNum(Object replyNum);
	
	public List findByChildCategoryId(int categoryId);
	
	public List findAll();
	
	public List findRecentEntity();
	
	public RecommendationEntity merge(RecommendationEntity detachedInstance);

	public void attachDirty(RecommendationEntity instance);

	public void attachClean(RecommendationEntity instance);

	public List<RecommendationEntity> searchByPattern(String query);

}
